
package com.uvlab.sitespot.common;



import java.util.List;

/**
 * Created by Administrator on 2016/4/22 0022.
 * modified by yl on 2016/4/26
 * modified by yl on 2016/4/27 . add the detail of node constructor
 *
 *
 */
public class JxNode {

    // TODO: pls add property: id, fullname, shortname
    //dateTimeStr：创建时间
    //lastModified：最后修改时间
    //state:0.编辑中 1.正常 2.已删除
    protected String id;
    private String fullname;
    private String shortname;
    //true:FOLDER false:FILE
    private boolean category;
    private String content;
    private String parent;
    private List<String> children;
    private String dataTimeStr;
    private String suffix;
    private String name;
    private int state;
    public static  int EDITTING=0;
    public static  int NORMAL=1;
    public static  int DELETE=2;

    public JxNode() {
    }

    public JxNode(String id, String fullname, String shortname, boolean categories, String content, String parent, List<String> children, String dataTimeStr, String suffix, String name, int state) {
        this.id = id;
        this.fullname = fullname;
        this.shortname = shortname;
        this.category=categories;
        this.content = content;
        this.parent = parent;
        this.children = children;
        this.dataTimeStr = dataTimeStr;
        this.suffix = suffix;
        this.name = name;
        this.state=state;
    }

    //region get and set
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFullname() {
        return fullname;
    }

    public void setFullname(String fullname) {
        this.fullname = fullname;
    }

    public String getShortname() {
        return shortname;
    }

    public void setShortname(String shortname) {
        this.shortname = shortname;
    }

    public boolean getCategory() {
        return category;
    }

    public void setCategory(boolean category) {
        this.category = category;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getParent() {
        return parent;
    }

    public void setParent(String parent) {
        this.parent = parent;
    }

    public String getDataTimeStr() {
        return dataTimeStr;
    }

    public void setDataTimeStr(String dataTimeStr) {
        this.dataTimeStr = dataTimeStr;
    }

    public List<String> getChildren() {
        return children;
    }

    public void setChildren(List<String> children) {
        this.children = children;
    }

    public String getSuffix() {
        return suffix;
    }

    public void setSuffix(String suffix) {
        this.suffix = suffix;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }
    //endregion

    @Override
    public String toString() {
        return "JxNode{" +
                "id='" + id + '\'' +
                ", fullname='" + fullname + '\'' +
                ", shortname='" + shortname + '\'' +
                ", category=" + category +
                ", content='" + content + '\'' +
                ", parent='" + parent + '\'' +
                ", children='" + children + '\'' +
                ", dataTimeStr='" + dataTimeStr + '\'' +
                ", suffix='" + suffix + '\'' +
                ", name='" + name + '\'' +
                ", state='" + state + '\'' +
                '}';
    }
}
